Return to doc.sitecore.com

Valid for Sitecore 5.2, 5.1.1
  Implementing Read/Write Data Sources
Prev Next

Read/write support can be added to read-only data source by adding support for a few additional methods (shown below).  We refer to this level as “simple read/write integration” because support for more complex data modification interactions, such as copying and moving items, is described in separate sections.

Return Value

Method Name

Parameters

Description

bool

CreateItem

ID itemID
string itemName
ID templateID
ItemDefinition parent
CallContext context
 

Creates an item with the given ID and name, based on the specified template, as a child of the given parent.  Returns True if successful, False otherwise.

bool

DeleteItem

ItemDefinition item
CallContext context
 

Removes the specified item from the physical storage.  Returns True if the item was remove successfully, False otherwise.

bool

SaveItem

ItemDefinition item
CallContext context
 

Saves changes made to an item to the physical storage.  Returns True if the item was saved successfully, False otherwise.


Prev Next